/**
 * Created by vincent on 2017/9/27.
 */
/**
 * Created by vincent on 2017/2/23.
 */
moduleQuiz.config(function ($stateProvider) {
    $stateProvider
        .state('sz.quizQuery', {
            cache: false,
            url: '/quizQuery',
            views: {
                'sz-main': {
                    templateUrl: 'templates/QuizQuery.html',
                    controller: 'QuizQuery'
                }
            }
        })
        .state('sz.quizTopicQuery', {
            cache: false,
            url: '/quizTopicQuery/:quizTemplateId',
            views: {
                'sz-main': {
                    templateUrl: 'templates/QuizTopicQuery.html',
                    controller: 'QuizTopicQuery'
                }
            },
            params: {
                quizTemplateId: null
            }
        })
    ;

    DialogState.addState("addQuiz", {
        template: "templates/AddQuiz.html",
        controller: "AddQuiz"
    });

    DialogState.addState("editQuiz", {
        template: "templates/EditQuiz.html",
        controller: "EditQuiz"
    });

    // DialogState.addState("addQuizTopic", {
    //     template: "templates/AddQuizTopic.html",
    //     controller: "AddQuizTopic"
    // });
    //
    // DialogState.addState("editQuizTopic", {
    //     template: "templates/EditQuizTopic.html",
    //     controller: "EditQuizTopic"
    // });
    //
    // DialogState.addState("addQuizTopicAttribute", {
    //     template: "templates/AddQuizTopicAttribute.html",
    //     controller: "AddQuizTopicAttribute"
    // });
    //
    // DialogState.addState("editQuizTopicAttribute", {
    //     template: "templates/EditQuizTopicAttribute.html",
    //     controller: "EditQuizTopicAttribute"
    // });
});